#include "ImageProcessPlugin.h"
ImageProcessPlugin::ImageProcessPlugin()
{
    m_info.id = QStringLiteral("image.process");
    m_info.name = QStringLiteral("ImageProcessPlugin");
    m_info.version = QStringLiteral("1.0.0");
}

ImageProcessPlugin::~ImageProcessPlugin() {}

const FunctionPluginInfo& ImageProcessPlugin::pluginInfo() const { return m_info; }

bool ImageProcessPlugin::initialize(ICore* core)
{
    m_core = core;
    // do something
    return true;
}

void ImageProcessPlugin::shutdown() {}

QImage ImageProcessPlugin::processImage(const QImage& input)
{
    m_core->logMessage(QStringLiteral("processImage return"));
    return QImage{};
}

void ImageProcessPlugin::setParameter(const QString& key, const QVariant& value)
{
    if (!m_core)
        return;

    m_core->logMessage(QStringLiteral("setParameter return"));
}

QString ImageProcessPlugin::status() const { return QStringLiteral("this is a string"); }
